package org.jks.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.google.gson.annotations.Expose;

@Entity
@Table(name = "ApplyOrder")
public class ApplyOrder implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "increment")
	@GenericGenerator(name = "increment", strategy = "increment")
	@Expose
	private long Id;
	@ManyToOne
	@JoinColumn(name = "DeviceApply", referencedColumnName = "Id", nullable = false)
	@Expose
	private DeviceApply DeviceApply;
	@ManyToOne
	@JoinColumn(name = "Device", referencedColumnName = "Id", nullable = false)
	@Expose
	private Device Device;
	@Expose
	private long Count;
	@Expose
	private float UnitPrice;

	public long getId() {
		return Id;
	}

	public void setId(long id) {
		Id = id;
	}

	public DeviceApply getDeviceApply() {
		return DeviceApply;
	}

	public void setDeviceApply(DeviceApply deviceApply) {
		DeviceApply = deviceApply;
	}

	public Device getDevice() {
		return Device;
	}

	public void setDevice(Device device) {
		Device = device;
	}

	public long getCount() {
		return Count;
	}

	public void setCount(long count) {
		Count = count;
	}

	public float getUnitPrice() {
		return UnitPrice;
	}

	public void setUnitPrice(float unitPrice) {
		UnitPrice = unitPrice;
	}

}
